You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > RayleighFit Method > Statistics.RayleighFit Method ([In] TVec, out double, double[], double)
Dew Stats for .NET
ContentsIndexHome
Example

The following example generates 100 random Rayleigh distributed values and then uses RayleighFit routine to extract used b parameter

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples; { private void Example() { Vector vec1 = new Vector(0); // first, generate 1000 randomly Rayleigh distributed // numbers with b=1.3 vec1.Size(1000,false); StatRandom.RandomRayleigh(1.3,vec1,-1); // Now extract the r and it's 95% confidence intervals. double resb; double[] CIb = new double[2]; Statistics.RayleighFit(vec1,out resb,out CIb,0.05); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.